package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMapPipelineMapper;
import com.ruoyi.system.domain.DispatchMapPipeline;
import com.ruoyi.system.service.IDispatchMapPipelineService;

/**
 * 地图管线信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMapPipelineServiceImpl implements IDispatchMapPipelineService 
{
    @Autowired
    private DispatchMapPipelineMapper dispatchMapPipelineMapper;

    /**
     * 查询地图管线信息
     * 
     * @param pipeId 地图管线信息主键
     * @return 地图管线信息
     */
    @Override
    public DispatchMapPipeline selectDispatchMapPipelineByPipeId(Long pipeId)
    {
        return dispatchMapPipelineMapper.selectDispatchMapPipelineByPipeId(pipeId);
    }

    /**
     * 查询地图管线信息列表
     * 
     * @param dispatchMapPipeline 地图管线信息
     * @return 地图管线信息
     */
    @Override
    public List<DispatchMapPipeline> selectDispatchMapPipelineList(DispatchMapPipeline dispatchMapPipeline)
    {
        return dispatchMapPipelineMapper.selectDispatchMapPipelineList(dispatchMapPipeline);
    }

    /**
     * 新增地图管线信息
     * 
     * @param dispatchMapPipeline 地图管线信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMapPipeline(DispatchMapPipeline dispatchMapPipeline)
    {
        return dispatchMapPipelineMapper.insertDispatchMapPipeline(dispatchMapPipeline);
    }

    /**
     * 修改地图管线信息
     * 
     * @param dispatchMapPipeline 地图管线信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMapPipeline(DispatchMapPipeline dispatchMapPipeline)
    {
        return dispatchMapPipelineMapper.updateDispatchMapPipeline(dispatchMapPipeline);
    }

    /**
     * 批量删除地图管线信息
     * 
     * @param pipeIds 需要删除的地图管线信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMapPipelineByPipeIds(Long[] pipeIds)
    {
        return dispatchMapPipelineMapper.deleteDispatchMapPipelineByPipeIds(pipeIds);
    }

    /**
     * 删除地图管线信息信息
     * 
     * @param pipeId 地图管线信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMapPipelineByPipeId(Long pipeId)
    {
        return dispatchMapPipelineMapper.deleteDispatchMapPipelineByPipeId(pipeId);
    }
}
